﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace CSP.Receipts.DataModel
{
    public class User
    {
        public int Id { get; set; }
        [Required]
        [StringLength(100)]
        public string Username { get; set; }

        [StringLength(50)]
        [Required]
        public string Password { get; set; }

        [Required]
        [MinLength(5)]
        [StringLength(200)]
        [DataType(DataType.EmailAddress)]
        public string EMail { get; set; }

        [StringLength(50)]
        [Required]
        public string FirstName { get; set; }
        
        [StringLength(50)]
        [Required]
        public string LastName { get; set; }
    }
}
